package com.zyh.scs.admin.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author hwh
 * @ClassName: 用户串码表$
 * @Description: $
 * @Date $
 * @Version 1.0
 */
@Data
@TableName("scsx_user_code")
@Schema(description = "用户串码表")
public class UserCode implements Serializable {

    /**
     * 主键id
     */
    @TableId(value = "id",type = IdType.AUTO)
    @Schema(description = "主键id")
    private Long id;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    @Schema(description = "用户ID")
    private Long userId;

    /**
     * 个人串码
     */
    @TableField(value = "user_code")
    @Schema(description = "个人串码")
    private String userCode;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
}
